package com.itheima.stock.pojo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 个股交易流水行情数据
 */

@ApiModel(description = "个股交易流水行情数据")
@Data
public class TradeDomain {
    @ApiModelProperty(value = "当前时间，精确到分", position = 1)
    @JsonFormat(pattern = "yyyyMMddHHmm")
    private Date date;                  //当前时间，精确到分
    @ApiModelProperty(value = "交易量", position = 2)
    private BigDecimal tradeAmt;        //交易量
    @ApiModelProperty(value = "交易金额", position = 3)
    private BigDecimal tradeVol;        //交易金额
    @ApiModelProperty(value = "交易价格", position = 4)
    private BigDecimal tradePrice;      //交易价格
}
